package com.xinyou.u8c.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinyou.u8c.entity.TransPartner;
import com.xinyou.u8c.entity.Vendor;
import com.xinyou.u8c.entity.VouchPagination;
import com.xinyou.u8c.result.JsonResult;
import com.xinyou.u8c.service.ICustomerService;
import com.xinyou.u8c.service.IVendorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chq
 * @since 2023-09-27
 */
@RestController
@RequestMapping("/u8c/vendor")
public class VendorController {

//    @Autowired
//    private IVendorService iVendorService;
//
//    @PostMapping("/getList")
//    public JsonResult getList(VouchPagination pagination) {
//        LambdaQueryWrapper<Vendor> queryWrapper = new LambdaQueryWrapper();
//        queryWrapper.orderByDesc(Vendor::getCVenCode);
//        Page<Vendor> pageWhere = new Page<>(pagination.getPage().longValue(), pagination.getPageSize().longValue());
//        IPage<Vendor> pageData = iVendorService.page(pageWhere, queryWrapper);
//        return new JsonResult(true, pageData);
//    }


}
